# coding:utf-8
from pandas.tests.sparse.frame.test_to_from_scipy import scipy

if __name__ == '__main__':
    with open('pos.txt', 'r', encoding='utf-8') as file:
        lines = [line[2:] for line in file.readlines()]
        i = 1
        for line in lines:
            open('test/pos/pos' + str(i) + '.txt', 'w', encoding='utf-8').write(line)
            i += 1
    with open('neg.txt', 'r', encoding='utf-8') as file:
        lines = [line[2:] for line in file.readlines()]
        j = 1
        for line in lines:
            open('test/neg/neg' + str(j) + '.txt', 'w', encoding='utf-8').write(line)
            j += 1

